package com.xzan.medusa.common.enums;

import lombok.Getter;

/**
 * APP端请求结果，返回的状态码
 *
 * @author ZhenMo
 * @date 18/4/17 18:49
 */
public enum AppReturnCodeEnum {
    SUCCESS("1", "成功"),
    NOT_LOGIN("2", "未登录或者登录已过期"),
    FAILURE("3", "失败"),
    USER_NOT_EXIST("8", "账号未注册"),
    USER_ABNORMAL("9", "账号异常"),
    INVALID_SESSION("101", "session不合法"),
    ;

    @Getter
    private String code;
    @Getter
    private String desc;

    AppReturnCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
